#ifndef WATTING_H
#define WATTING_H
#include "WattingDialog.h"
#include <QCloseEvent>
#include <QMouseEvent>
#include <QPoint>
#include <QTimer>

class Watting:public QDialog,public Ui_Dialog_waitting
{
    Q_OBJECT
public:
    Watting();
    QTimer timer;
    int timeCounter;
    QPoint dragPosition;
    void toHide();
    void startWait();
protected:
    void closeEvent(QCloseEvent *event);
    void mousePressEvent(QMouseEvent *);        //自定义一个鼠标点击事件函数
    void mouseMoveEvent(QMouseEvent * event);   //实现窗口拖拽

public slots:
    void timerClick();
};

#endif // WATTING_H
